package com.ruoyi.project.api.user;

import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.courseuser.courseuser.entity.req.AddCourseUserReq;
import com.ruoyi.project.courseuser.courseuser.service.IBCourseUserService;
import com.ruoyi.project.system.banner.domain.TBanner;
import com.ruoyi.project.system.banner.service.ITBannerService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * banner
 */

@RestController
@RequestMapping("/api/banner")
public class WebBannerController extends BaseController {

    @Autowired
    private ITBannerService tBannerService;

    @ApiOperation("banner列表")
    @Log(title = "APP接口管理", businessType = BusinessType.OTHER)
    @PostMapping("/list")
    public AjaxResult list(TBanner tBanner, HttpServletRequest request) {

        List<TBanner> list = tBannerService.selectTBannerList(tBanner);
        return AjaxResult.success(list);
    }





}
